package com.ymy.thinking.in.spring.bean.entity;

import org.springframework.beans.factory.FactoryBean;

/**
 * {@link FactoryBean} 接口实现
 *
 * @author Ringo
 * @date 2021/8/25 21:29
 */
public class PersonFactoryBean implements FactoryBean<Person> {
    @Override
    public Person getObject() throws Exception {
        return Person.create();
    }

    @Override
    public Class<?> getObjectType() {
        return Person.class;
    }
}
